<div id="filterBox">
  Filters (
  <a href="#" onClick="$('filterTable').show(); return false;">show</a>
  |
  <a href="#" onClick="$('filterTable').hide(); return false;">hide</a>
  )


  <div id="filterTable">
    <form id="filter_form" name="filter_form" action="">

      <hr>
      <table>
        <tr>
          <th>Status</th>
          <th>Region</th>
          <th>Group</th>
          <th>Institution</th>
        </tr>

        <tr>
          <td>
            <% @youth_statuses.each do |ys| %>
              <%= check_box_tag "youth[youth_status_id][]", ys.id %>
              <%= ys.name %>
              <br>
            <% end %>
          </td>

          <td>
            <% @regions.each do |r| %>
              <%= check_box_tag "youth[region_id][]", r.id %>
              <%= r.name %>
              <br>
            <% end %>
          </td>


          <td>
            <% @youth_groups.each do |g| %>
              <%= check_box_tag "youth[youth_group_id][]", g.id %>
              <%= g.name %>
              <br>
            <% end %>
          </td>

          <td>
            <% @institutions.each do |i| %>
              <%= check_box_tag "youth[institution_id][]", i.id %>
              <%= i.name %>
              <br>
            <% end %>
          </td>

        </tr>
      </table>
    </form>
  </div>
</div>

<SCRIPT LANGUAGE="JAVASCRIPT" TYPE="TEXT/JAVASCRIPT">
  <!--
  $('filterTable').hide();
  //-->
</SCRIPT>
